package com.riant.dayo2.demo6;

import java.util.Arrays;

/**
 * @Classname Test
 * @Description TODO
 * @Date 2021/2/28 0:44
 * @Created by 张斌
 */
public class Test {
    public static void main(String[] args) {
        String[] arr={"123","acdd","a","acd"};
        Arrays.sort(arr,new LengthComparator());
        System.out.println(Arrays.toString(arr));

    }
}
